VERSION 5.00
Begin VB.Form AgeForm 
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   LinkTopic       =   "Form1"
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VCT.ClientDemoCtrl DEMO 
      Height          =   4095
      Left            =   300
      TabIndex        =   4
      Top             =   240
      Width           =   11415
      _ExtentX        =   20135
      _ExtentY        =   7223
   End
   Begin VB.CommandButton Cancel_Button 
      BackColor       =   &H008080FF&
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   6540
      Width           =   1935
   End
   Begin VB.CommandButton Next_Button 
      Caption         =   "Next"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   1
      Top             =   4500
      Width           =   1935
   End
   Begin VB.CommandButton Clear_Button 
      Caption         =   "Clear"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   0
      Top             =   5520
      Width           =   1935
   End
   Begin VCT.TouchKeyPad TouchKeyPad 
      Height          =   4095
      Left            =   840
      TabIndex        =   3
      Top             =   4560
      Width           =   3495
      _ExtentX        =   6165
      _ExtentY        =   7223
   End
End
Attribute VB_Name = "AgeForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim TempAge As String

Private Sub Cancel_Button_Click()
   VCTStageForm.Show
   Unload Me
End Sub

Private Sub Clear_Button_Click()
   TempAge = ""
   Age = TempAge
   DEMO.UpdateData
   Next_Button.Enabled = False
   Clear_Button.Enabled = False
   TouchKeyPad.Enabled = True
End Sub

Private Sub Form_Load()

   Next_Button.Enabled = False
   Clear_Button.Enabled = False
   'ClientCode_Data.Caption = CLIENTCO
'   If SEX = "1" Then
'    '  ClientSexLabel.Caption = "Male Client"
'     ' SexColorLine.BorderColor = vbBlue
'   Else
'      If SEX = "2" Then
'       '  ClientSexLabel.Caption = "Female Client"
'        ' SexColorLine.BorderColor = vbGreen
'      Else
'        ' ClientSexLabel.Caption = "ERROR"
'        ' SexColorLine.BorderColor = vbRed
'      End If
'   End If
  ' ClientCode_Data.Caption = CLIENTCO
   TempAge = ""
   DEMO.UpdateData
   DEMO.SetStar (1)
End Sub

Private Sub Next_Button_Click()
   Age = TempAge
   CurrResClassForm.Show
   Unload Me
End Sub

Private Sub TouchKeyPad_NumPressed()
   Next_Button.Enabled = True
   Clear_Button.Enabled = True
   TempAge = TempAge & TouchKeyPad.KeyNum
   DEMO.C_Age = TempAge
   If Len(TempAge) > 1 Then
      TouchKeyPad.Enabled = False
   End If
End Sub
